
#######################################################
#        Building a stand-alone GUI application       #
#######################################################
TEMPLATE = app
CONFIG(debug, debug|release) {
	TARGET = CadPlayG_debug
} else {
	TARGET = CadPlayG
	DEFINES += QT_NO_DEBUG
}
CONFIG += warn_on build_all debug_and_release
INCLUDEPATH += ../../..
QT += core gui


#######################################################
#              Use the dynamic library                #
#######################################################
LIBS += -L../../../build
CONFIG(debug, debug|release) {
	LIBS += -lcpg_debug
} else {
	LIBS += -lcpg
}


#######################################################
#                     Components                      #
#######################################################

include( "../version.pri" )
include( "../local_defs.pri" )

# argtable
LIBS += -largtable2


# either import nor export variant needed
DEFINES += BBLOCKS_STANDALONE


#######################################################
#       Where to output the files we generate?        #
#######################################################
isEmpty( DESTDIR ) {
	DESTDIR	= ../../../build
}
isEmpty( OBJECTS_DIR ) {
	OBJECTS_DIR = ./tmp
}
isEmpty( MOC_DIR ) {
	MOC_DIR = ./tmp
}
isEmpty( UI_DIR ) {
	UI_DIR = ./tmp
}


#######################################################
#                    Components                       #
#######################################################


TRANSLATIONS    += \
	CadPlayG_ro_RO.ts


# Windows specific icon
RC_FILE = ../../../cpg/editor-app/win-res.rc


# MacOSX specific icon
ICON = ../../../cpg/res/CadPlayG.icns

OTHER_FILES += \
    ../../../cpg/editor-app/win-res.rc

HEADERS += \
    ../../../cpg/editor-app/mw.h \
    ../../../cpg/editor-app/edstgs.h

SOURCES += \
    ../../../cpg/editor-app/mw.cc \
    ../../../cpg/editor-app/edstgs.cc \
    ../../../cpg/editor-app/editor-main.cc

FORMS += \
    ../../../cpg/editor-app/mw.ui \
    ../../../cpg/editor-app/edstgs.ui

OTHER_FILES += \
    ../../../cpg/res/CadPlayG.ico

HEADERS += \
    ../../../cpg/actions/mdicontainer.h \
    ../../../cpg/actions/actionshost.h

SOURCES += \
    ../../../cpg/actions/mdicontainer.cc \
    ../../../cpg/actions/actionshost.cc

HEADERS += \
    ../../../cpg/actions/file/fileimpl.h

SOURCES += \
    ../../../cpg/actions/file/fileimpl.cc

FORMS += \
    ../../../cpg/actions/file/file.ui

RESOURCES += \
    ../../../cpg/actions/file/file_icons.qrc

HEADERS += \
    ../../../cpg/actions/edit/editimpl.h

SOURCES += \
    ../../../cpg/actions/edit/editimpl.cc

FORMS += \
    ../../../cpg/actions/edit/edit.ui

RESOURCES += \
    ../../../cpg/actions/edit/edit_icons.qrc


HEADERS += \
    ../../../cpg/actions/help/helpviewer.h \
    ../../../cpg/actions/help/helpimpl.h

SOURCES += \
    ../../../cpg/actions/help/helpviewer.cc \
    ../../../cpg/actions/help/helpimpl.cc

FORMS += \
    ../../../cpg/actions/help/help.ui

RESOURCES += \
    ../../../cpg/actions/help/help_icons.qrc

HEADERS += \
    ../../../cpg/actions/insert/insertimpl.h

SOURCES += \
    ../../../cpg/actions/insert/insertimpl.cc

FORMS += \
    ../../../cpg/actions/insert/insert.ui

RESOURCES += \
    ../../../cpg/actions/insert/insert_icons.qrc

HEADERS += \
    ../../../cpg/actions/mdi/mdiimpl.h \
    ../../../cpg/actions/mdi/fancymdiarea.h

SOURCES += \
    ../../../cpg/actions/mdi/mdiimpl.cc \
    ../../../cpg/actions/mdi/fancymdiarea.cc

FORMS += \
    ../../../cpg/actions/mdi/mdi.ui

RESOURCES += \
    ../../../cpg/actions/mdi/mdi_icons.qrc

HEADERS += \
    ../../../cpg/actions/textfield/textfield.h

SOURCES += \
    ../../../cpg/actions/textfield/textfield.cc

HEADERS += \
    ../../../cpg/actions/view/viewimpl.h

SOURCES += \
    ../../../cpg/actions/view/viewimpl.cc

FORMS += \
    ../../../cpg/actions/view/view.ui

RESOURCES += \
    ../../../cpg/actions/view/view_icons.qrc


